<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const fn2 = function () {
        console.log("hello");
      };
      function fn1(x, y, fn3) {
        fn3(); // fn3 = fn2
        console.log("fn1", x + y, fn3);
      }
      fn1(1, 2, fn2);
    </script>
  </body>
</html>
